import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class DagaNM here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class DagaNM extends NinjaM
{
     private boolean Dir;
    
    public DagaNM(boolean dir){
      Dir = dir;
      }
      
    /**
     * Act - do whatever the Daga wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act() 
    {
        move();               
    }   
    
    private void move(){
        
        if(!Dir)
           super.move(10);
        else {
                super.setRotation(180);
                super.move(10);
                 }
     
      } 
}
